Prizm Content Connect
How To Enable Headless Mode

Strict settings of the firewall on a Linux environment may prevent connecting JRE with X11 Window Server. Therefore, the class X11GraphicsEnvironment cannot be initialized:

Example of Possible Errors
Copy Code
INFO | jvm 1 | 2013/05/01 19:40:31 | Exception in thread "Thread-22" java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
INFO | jvm 1 | 2013/05/01 19:41:28 | Exception in thread "Thread-38" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

To fix this issue, the headless mode should be enabled in JRE. Headless mode does not require a DISPLAY connection.

  1. To enable this mode, the following line should be added into jrunner-linux-x86-64.properties and jrunner-linux-x86-32.properties:
Example
Copy Code
jrunner.java.additional.2=-Djava.awt.headless=true

This line should be added right after the line where "jrunner.java.additional.1=..." is defined.

  1. Restart the Prizm service for the new configuration setting to take effect.

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback